# Modify building of VirtualBox to get a cleaner system

DEFS += RTPATH_APP_PRIVATE=\"/usr/share/virtualbox\"

# don't build testcases to save time, they are not needed for the package
VBOX_WITH_TESTCASES     :=
VBOX_WITH_TESTSUITE     :=
VBOX_WITH_VALIDATIONKIT :=

# don't build guest-additions, they will come in a separate build
VBOX_WITHOUT_ADDITIONS  := 1

KBUILD_MSG_STYLE        := brief

VBOX_WITH_ORIGIN           :=
VBOX_PATH_APP_PRIVATE_ARCH := /usr/LIBDIR/virtualbox
VBOX_PATH_SHARED_LIBS      := $(VBOX_PATH_APP_PRIVATE_ARCH)
VBOX_WITH_RUNPATH          := $(VBOX_PATH_APP_PRIVATE_ARCH)
VBOX_PATH_APP_PRIVATE      := /usr/share/virtualbox
VBOX_PATH_APP_DOCS         := $(VBOX_PATH_APP_PRIVATE)

# Disable showing registration window on startup
VBOX_WITH_REGISTRATION  =

# gcc 4.5 fix
VBOX_WITH_WARNINGS_AS_ERRORS :=

# Do not require pam
VBOX_WITH_PAM :=

# Correct path to java
VBOX_JAVA_HOME := /usr/LIBDIR/java

# Do not build docs from source. Depends on texlive...
VBOX_WITHOUT_DOCS := 1

# Use our CFLAGS
VBOX_GCC_OPT := CXXFLAGS

# Don't display update requests as we manage updates via packages
VBOX_WITH_UPDATE_REQUEST :=

# Build useful tools linked to testcases
VBOX_WITH_VBOX_IMG     := 1
VBOX_WITH_VBOXIMGMOUNT := 1
